package swu.edu.cn.javaee.mapper;

import org.springframework.stereotype.Repository;
import swu.edu.cn.javaee.entity.Merchant;

import java.util.List;


@Repository
public interface MerchantMapper {
    //TODO
    //增，删，改
    public void saveMerchant(Merchant merchant);

    public void deleteMerchant(String cid);

    public void updateMerchant(Merchant merchant);
    //查询某个商户信息
    public Merchant queryMerchant(String userUid);
    public Merchant queryByCid(String cid);
    //查询所有商户信息
    public List<Merchant> queryList();
    //按证书查
    public Merchant queryByLicenseNumber(String licenseNumber);
    //按经营类型查
    public List<Merchant> queryByType(String businessType);
    //按经营场所查
    public List<Merchant> queryByPremises(String premises);
    //按商品分类查
    public List<Merchant> queryByClassify(String productClassify);
    //模糊查询
    public List<Merchant> queryByInput(String Input);

    //查询商户调试
    public int queryCount();

    //分页查询
    public List<Merchant> queryListLimit(int start,int limit);
}
